package entity;


import java.util.Date;

public class Books {
    private Integer id;
    private String name;

    public Books(Integer id, String name, String author, Date time, BookType bookType) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.time = time;
        this.bookType = bookType;
    }

    private String author;
    private Date  time;
    private  BookType bookType;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }



    @Override
    public String toString() {
        return "Books{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", time=" + time +
                ", bookType=" + bookType +
                '}';
    }

    public void setBookType(BookType bookType) {
        this.bookType = bookType;
    }

    public Books() {
    }

    public BookType getBookType() {
        return bookType;
    }
}